Merge pull request #7378 from JosJuice/fix-reducing-log-paths Fix reducing log paths when building with MSVC