Fix bench_env regressions and improve error reports

Fixes some `bench_env` regressions due to #307.

Also improve error output by using Bash's `${VAR?}` syntax for user defined environment variables.