Fix syslog

- fix escape characters for "<%"
- fix "if-then" syntax for rsyslog