BUG: $PROGRAMDATA resolves to "c:/program files"

On Windows builds, $PROGRAMDATA resolves to “c:/program files” which is incorrect.

For example, using the cache configuration:

cache:
  directories:
    - $PROGRAMDATA/chocolatey/bin
    - $PROGRAMDATA/chocolatey/lib

… will result to this:

adding C:/program to cache
creating directory C:/program
adding files/git/chocolatey/bin to cache
creating directory files/git/chocolatey/bin
adding C:/program to cache
adding files/git/chocolatey/lib to cache
creating directory files/git/chocolatey/lib
C\:/program
files/git/chocolatey/bin
C\:/program
files/git/chocolatey/lib is not yet cached
Imprint