Simplify file tree building for the filesystem view.

Technically this also simplifies on disc filename building in general.