Fix variable reference in git-checkbuild. Refs #6653