Shell script to watch a file with inotify and do something when the file changes