Changed way of getting postgis version.