Be more lenient in Ping. Add more output
Minor bashism fix