bug fix: directory depth was incorrect for directories
Root directory has depth of -1 to identify top of tree
recompiled undef DEBUG