Ensure cache directory exists