improve handling of hosts blocking ICMP

Ping does not necessarily report the host as unreachable if it's just blocking
ICMP. Thanks to Jason Chong <jchong@scinet.utoronto.ca> for reporting this issue
and suggesting the cause.