Remove use of /tmp as temporary directory; all scripts now write temp files to output directories.