inotify based file monitor replacement