add_to_etc_hosts no more spare newlines, cleanup also based on private ip