Merge pull request #10098 from AdmiralCurtiss/scan-dir-tree-trailing-slash Common/FileUtil: Strip trailing path separator in ScanDirectoryTree().