Save the --local-dir value in the cache file.