[FIX] improved cartesian product of file extensions