If avast! detected an infected system file, it would warn the user and ask what to do with it.
In my opinion, it seems like a conflict of multiple antivirus programs, as whocares said.

Can you boot to Safe mode?