Fixed issues with setupdb_app: version determination and error trapping.  This allows setup to work with PostgreSQL 9.4, among other things.