Update ping

+Update ping to not break on most operating systems
+Added better url striping to get host