[BUGFIX] Fix package / manifest detection
In production context class loading fails because the classloader has a
wrong map for namespaces. This is caused by getNamespace() doing the
wrong thing - because it finds no composer manifest.
This change fixes this.