os check added to ping function
Merge pull request #3 from marlon82/Marlon

os check added to ping function