I had the same issue, clean install of W10 fall creators update. It seems that Avast just do not turn off Windows Defender and instead stays in passive mode by default with a working Defender. It took me some time to solve this the same way you did.