mllib: hostname: add a newline in /etc/hostname

/etc/hostname usually has an ending newline, so add it when changing it.