fixed php version check