change shebang

changed to #!/usr/bin/env ruby
updated ping count

updated ping count to 3 and changed shebang line to be more portable
no longer need bash variant