Error handling fixes

Fix up error handling when `pgbench` or `gnuplot` are missing.