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
Should check for error here -- nonzero means failure. Not sure if we can test for the specific error code, but would be good to raise an error and echo the parameter we passed, since the problem would have to be in the parameter at that point (memory is pre-allocated).