Do file type merging more correctly in pnmselect.