Fix #585 - wrong check for php version