working PING for bash
working PING for dash
work arounds for bash 3 as sh on Mac OS X