Simplifed inotify stuff

Thanks @sudorandom