Avoid pathwatcher.watch failures in testDirectory.