fix for grains_cache setting on windows
Merge pull request #10984 from thematthopkins/windows_grains_caching_fix

Fix for grains_cache setting on windows