Jdmundrawala/windows env path

Fixes issues: 
https://github.com/opscode/chef/issues/2016 
https://github.com/opscode/chef/issues/2009

Includes changes from/Should replace:
https://github.com/opscode/chef/pull/1876
This uses the windows api instead of find/replace and I've added functional tests
I guess this shows my lack of knowledge in ruby. I thought 0 would be false