don't assume _trial_temp is the name of the temp directory; find it out instead