It's definitely that. Avast likes to flag random files as harmful and messes with them in a bunch of ways. I've done experiments with it before in a VM and it was one of the worst offenders :(
So, any ways to fix it? As I said I've tried desactivating Avast and the result is no different. Should I get other antivirus that doesn't mess with itch or something like that?