Prefer installing into name as declared by component.json

Had to revert #268, sorry. Turned out changing the `Package#name` property broke a ton of resolve code.

This is a more targeted alternative fix that only affects the installation directory.

/cc @satazor @sindresorhus