Msbuild logging: Fix block scope error