Minor fix for automatic removal of temporary files