File watcher library based on inotify