corrects the internal depth-perception of list_dir() while operating recursively.  revealed a bug wherein the "as_tree" option does not honor depth specs, and this *was* by design, but to a fault that must be corrected