Fix phar check