Fix package name when repo url not available
Get metadata information from loaded packages. 

Packages with activation events may not be active at this point.