Complete the fix for issue 8302.

The original fix (e6621da89985ca9688f758c5fffd00438050bfd4) missed the
second variant of std.file.dirEntries.