Use n['foo'] instead of n.foo to support chef-solo.
Use a method for Chef::Node#name and Chef::Node#chef_environment, not a attribute.
Merge pull request #152 from hnakamur/support-chef-solo

[COOK-2721] Use n['foo'] instead of n.foo to support chef-solo.