Updated component name extraction in autoloader generation

Updated component name extraction from name, so that package name can contain namespacing, eg:

oligriffiths/nooku-emails-component
oligriffiths/nooku-validation-component

The required part of the name is before the -component, if there are additional dashes, they're now ignored.