New version bumping logic.

If the repo has changed since the last tag, the minor version is bumped.
Otherwise, the old tag is used.