Keep the existing lowercase .tex extension rule when the platform glob also returns uppercase matches. Add a regression case that supplies the Windows-style glob result on any CI host. Related to #2354.