Fix logging in win build script