Remove use of fsnotify, use stat polling instead.