Move perf profiling env setup into load-config, so run-perf.sh can use it.