tempfile2 function

Make a temporary subfile in a temporary (sub-)directory