Added PHP version check to build process