fix: chef-client write hosts bug