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

Fixes #3284.