fix logrotate functionality