updated pingdef to use ip utils and not use grep