Correctly display errors in configure-pg-env.sh.

* Print errors in configure-pg-env.sh to STDERR instead of STDOUT.
* Don't run `export` in recreate-schema.sh until after
  configure-pg-env.sh is successfully ran, to avoid the case where
  it would run `export` without any arguments. `set -e` ensures it
  won't run the `export $ENV` line if configure-pg-env.sh fails.
Merge pull request #1748 from duckinator/build-system-fixes

Correctly display errors in configure-pg-env.sh.