[watchmedo] Fix broken parsing of commands from auto-restart, and shell-command (#888)

Credit goes to @taleinat!
3 files changed