Fixes #4622: Change logrotate logic to be more clean (use of templates)

Ticket: http://www.rudder-project.org/redmine/issues/4622

To be merged in master