Modify $hostname to $fqdn