Expand environment variables in path

This should help ease the pain from
https://github.com/opscode/chef/pull/1876
until we do another chef client release
as indicated by @julbra's comment, this require should be wrapped in a check for windows:

```
if RUBY_PLATFORM =~ /mswin|mingw32|windows/
  require 'Win32API'
end
```