Fix setting hostname from file.