1. add the synthstrip_N3 and input filename to tmpdir naming 2. Add the function name to the mktemp functions 3. Re-define TMPDIR in the script so that the temporary directories from functions are nested in the top-level tmpdir