(__gen_tempname): Correct flag selection.