* files.el (file-tree-walk): Use file-name-as-directory
unconditionally.