Moved Win32 environment substitutions from CmdIO to CommandUtils