Make postgis database script work with postgis 2 and postgresql 9.3
as used in Ubuntu 14.04