Add logrotate support