fix `generate --watch` for win32 platform