Move the check for existing version tags after the sanity checks.

This avoids that package authors start tagging a package because of the error message only to discover that there are still other errors.