Fix amd-tree to output folders as well.