fix for cygwin when cmd.exe or command.com is in the path