use Postgis Version variable
support custom psql port in setup.php

patch by b3nn0 (see http://trac.openstreetmap.org/ticket/4736)