Fix saving filenames that used in train and test datasets. Add this feature to process_group_folder script