added OS-specific switch for syslog address

Added a check for OS before assigning any address. Checked both on Mac OS X and Ubuntu.