fix bug that watch command couldn't be executed on windows