Fix storing the bundle name in the pluginsMap

Occasionally there are extra characters there that we don't need
and breaks retrieval later on.