Improve logrotate with sharedscript option