Update check.php

Changed checker logic
Checker now checks for status code from the ping command rather than response time.
Added support for multiple OS