Fix dir_tree.py now longer crash if given directory has other directories with files.