remove temp files only when they exist