Tidy up intermediate files