Added a PHP check before installing certain scripts