Fix OS detection for Gerrit postbuild