Check if directory exists before trying to create it

Added a check if the cache directory already exists before trying to create it in the filesystem driver. Otherwise php throws a warning if the directory already exists.