Minor improvements to validate.package.
Improvements to repository validation, units and
file loading.