Flatten directory hierarchy.