Fix metadata dependency loading

Due to the way the dependency graph was being generated, the lite
metadata was overriding the actual metadata file that we want to use
(full).