Reference the correct files.
Fixed typo.
Make use of the manifest if available.

getManifest calls raises a warning if not reachable (happens on libs and packages).

Additionally cast manifests into XML for display.
Use known message types to avoid a notice.