A better way to find places to write .pth files for the tests? #339.