second pass -- distinguishing extensions from full filenames