I tried `cmd.exe` with `system` yesterday and it failed, I didn't work out why. The reason the command gets split is just because of the API IIRC. Anyway, merging this PR would be a clear improvement, even if not perfect.