Watch a directory for changes using inotify and execute a script when something is changed.