r23605: Update mkversion.sh to support git and git-svn checkouts.