Windows compatibility fixes for git-cache feature.

/cc: @opscode/client-eng / @opscode/release-engineers