Sync with Nodeca Core. New `N.config.options.cache_dir` option.