Fix a logic flaw when merging all extensions found
Fix a bug where the 'merged_files.txt' would not be created even if the checkbox to create one file per extensions was unchecked