Fixed error that copy file to a non-existing folder
Fixed bugs that chef_node is nil or unintialized
Fixed a bug that node_info was concurrently written