now works on mac os x

`ping -n 1 <host>` not working on mac (tested 10.6–10.9)