BLD: make test_perf.sh work on OSX too