Create the directory for the object cache if it does not exist.