Check to see if cache directory exists before creating it