Fixing conflicts with using /tmp/ as the tmp_dir