(bug 13143) Fix regression in r25481, in which file extensions were incorrectly being...