Expand getComponents(). Fix runof crashing when the package has no build tree.
Add components list
Add metadata template block