If I’m not mistaken (and of course Igor or whoever is welcome to correct me), avast scans disk sectors as nearly consecutively as it can, rather than working from directory listings. So it’s quite common to see it jumping back and forth between folders.