Fixed directory watcher for linux