Fix default cache folder path setting
Throw exception when unable to create cache dir.