Build the logrotate script according to paths