detect logrotate version and pass correct option

added an extra check in the log rotate file to see if the available version supports the 'su' directive