Fix ping_ip_address method in order to be run under BSDs

Modify the ping command used in the ping_ip_address static method in
order to be run also under BSD systems.

Closes-Bug: 1369527
Change-Id: Iac9ef4ab26fca6ca628159569a86c5af089a225a
Merge "Fix ping_ip_address method in order to be run under BSDs"