Added check to see if cache folder exists