Detect OS X

Detect if the program is running on OS X before trying to call
terminal-notifier.