Chnaged newline char

Replaced \n with Enviroment.NewLine (\n\r) in hosts file update to get
correct new lines in file.