Canonicalize typenames, and remove empty sections.
[ccan] / junkcode /
drwxr-xr-x   ..
drwxr-xr-x - codedr@gmail.com-grok