Updated the installation script to more smartly create the host URL