Updated deprecated System.cmd/3 calls

*NOT TESTED IN WIN32* - Sorry, don't have access to a Win32 box.
Maybe @chyndman can help?