Add support for Windows ping when using MINGW32.
Fix error in exec_ping switch
Add support of Windows ping command when the script is used in MINGW32.