Avoid NSUserNotifications when Terminal is in foreground