util: fix copy-paste error and actually set the new hostname

Reported-by: sztanpet on irc