in iter_files_with_extension: get extension of name not path.