- Fix hostname issues for different type of deployment modes.