buildman: Perform tests in a temporary directory