fix notifier bug with shell=True