In this case I would check the file in the TEMP folder that gets locked with Avast.