avtools: parse loglevel before all the other options.