Build a tree of the components dir