Fix PostGIS version detection.