Make version_git.sh work on older versions of git.

The --count option to git-rev-list was introduced in git version 1.7.6. When base/version_git.sh is run on versions of git without this option, a long help message is generated (cluttering up make output) and generating an incorrect base/version_git.jl.

This problem has previously arisen in #5587.