I didn't test the script on a virgin system, until I did it on a new cygwin system. Now I have discovered this, and I have fixed it to properly create the cache dir again.