Fix inotify check