fixed bug in the hostname setting when it's not a fqdn