Fixes the autoload_namespaces generator for packages in the root of the vendor directory
Merge pull request #2187 from benjisg/fix-AutoloadNamespacesGenerator

Fixes the autoload_namespaces generator