Add back addPathToWatchServiceTask when registering a file for monitoring