Updated script and jar to include replacing the hostname.