adds and fixes logrotate