Don’t know what avast version you had installed, but things have changed. Detection has been improved, new detection methods are in place etc.
And yes (at least part of the culprit) is because of what you did/do.