If property name is not existent on component.json default to property main on package.json

... package.json file and try to use the main property from it to create the copy instead