use cogent.app.get_tmp_filename to create a temp directory name.