fix `generate --watch` for win32 platform
Merge pull request #203 from mcfog/master

fix `generate --watch` for win32 platform