Fixed typos and problems with the hostname not being replaced properly