fix shell command injection
add way to test command under windows
change command to which available under most unix systems

agree i will change it which is available under suse, ubuntu, debian, fedora, bsd