Update check.php

fix for checking relative links