small tweaks in the stats scanner - avoid analyzing non-dir entries