fix PWD in environment of sub-process (MSWin32)

this fixes the first bug in RT #65512
add a MSWin32 constant to be used for win32-specific bits
A win32 implementation based on IPC::Run