Fix tests for lodash-amd.
Simplify resolving `filePath` in perf/perf.js. [ci skip]