root with main breaking runtime

If you have a dependency with a different "main" than index.js with the recent root patch it was creating an invalid alias. This fixes it though I'm not sure if it breaks another case. The tests seem to pass though and my app is working as expected again with the root aliases in place.