Update PHP check to accommodate symlinks.