check rsyslog version to use correct end clause