Fixed checking for ESFM file extensions in subfolders