set tmp directory name before any operation that might need tmp dir