Fix OS detection for Gerrit postbuild

This was preventing me from building on Windows 8.1 with Visual Studio 2013.