Fall back to fs.watchFile if pathwatcher.watch does not work.

Fixes #3284.
Allow forcing fs.watchFile with an environment variable.