Remove cwd arguments as they don't work in the n* environment.
Set temp_dir when not passed in on command line.
This cache should be the global one.