Check for installed state before registering the logrotate background job