Adds hosts file update function