Fix for problem with duplicate fs.watch change events in Windows

Windows notifies files as changed twice. This fix makes sure the watch functionality does not trigger duplicate compilations.