Hub: improvements to install process.
Hub: small refactoring to the install code.