version metadata

Show the version metadata in log, and make sure it's unique in commit.