Test the way System.cmd finds for executables
Change implementation of System.cmd to match the docs
Merge pull request #2789 from alco/system-cmd-path-resolution

System.cmd path resolution