watches a directory and runs a command