Fix zend extension detection