remove dependency on ping gem due to ruby 2.0 decomission

instead use os level ping and process exit status