fix PHP version detection, when string doesnt start with PHP