Fixed bug removing trailing period from hostname.