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.