Consider all extensions when scanning for `fileTree` fields (see #6058)