Fixed WatchDirectory not using wait parameter