Newline fix for hosts file

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