fix repeat directory listing for root

* Trying to list the root drive multiple time could result in
  content not being listed due to an index not being reset
* Issue reported by Rod Smith