Dup input to ExpandEnvironmentStrings to make ruby 2.0 happy

Should solve https://github.com/opscode-cookbooks/windows/issues/137. The issue seems to be that ruby 2.0 from 1.9.3 and 2.1 behaves differently when trying to pack an array of strings from ENV.
cc @adamedx @btm @randomcamel