Adding quartz and fixing create cache directory error.