CB-6323 Fix superspawn's resolve function on windows (was very broken)