Fix a tmp deletion bug introduced in a previous commit related to TempFileProvider change