properly extract filenames with all-caps extensions (eg .CSV)