(#11276) Module tool on windows

Minor fixes to the module tool getting it closer to running on windows.