added ping check to oslevel script