added support for OS X notifications, using terminal-notifier