Split out waiting for a port to become available
When starting Postgres, wait until it's available before return
Fix PostGIS CHECK_COMMAND