[fix] Discover skips xml which are not manifests. Fixes #4746

The discover function will now skip the XML which are not manifests.

return the filename from the manifest

Returning the filename from the manifest file