Fix and some reworking so that Tuque leaves no temp files behind.