Set getBuildInfo commitID for build tag, not HEAD.

This is more consistent than having the other values consider the build
tag and only the commit ID consider the repo HEAD.
Sort build numbers numerically to find highest.

Normal string comparison could prove problematic with longer build
numbers.