Fix hosts file IP version bug