Add --old-metadata as a way to re-use previously generated icons and XML

The previous metadata must have been generated with --add-cache-id which does
increase the metadata size, but dramatically reduces the time to rebuild the
metadata for each tree.
Do not assume that paths in the package start at '.'