use inotiftwait to monitor file system and invoke compilation