Added support for logrotate