fixed bug in diriterator and recursivediriterator constructors