Are you running avast when signed on as a limited user (not admin, etc.) ?
If running as a limited user avast would generally block changes.

What setting are you using in Hardened Mode - Moderate or Aggressive ?
I suggest you set it to Aggressive if you haven’t done so already - That checks the file against the avast cloud database so it may not throw up the alert if the file info is found in the database.