Simplify inotify handler