Check linux distro and add php prefix

In centos linux now this failed because the package is php-whatever and in Debian is php5-whatever