Always treat cmd.exe as Windows

Closes #506.