rename --tmpdir to --outdir and add it to a few other scripts