Monitor a directory for changes and run a shell command