Fix method calls in pathutils.php