If root set the basename to component.json#name

If the root folder has a different name than the component it breaks when copying assets to the build directory.
Merge pull request #95 from CamShaft/patch-1

If root set the basename to component.json#name