Fix Python test runner so it can deal with builds in different locations.

Used to only handle builds in build_posix.