bugfix: check to make sure postgresql is installed before calling psql