This sort of thing is what `mktmp` is for...