perf-test: use source and build paths in perf-test-lib.sh