Fixes a regression since 5.5, where `ScanDirectoryFilesRecursively` no longer does the "recursively" part due to `path` being `static`. The issue was once already fixed in 5530a3ceb8 but recently made it back it in.
5530a3ceb8