Stamp builds with a more useful commit comment.

For releases, uses the release tag + git commit.
For dev builds, uses "dev" + git commit.