Cleanup linkcheck.php code