Made argument replacements work on windows when sending arguments through cmd.exe