Fix handling of commands on Windows 2008.

(And potentially other Windows systems)