test if "terminal-notifier" command exists first.