Use `git rev-parse` to get tag canonical revision

`git rev-parse` is preferred to get tag's canonical revision. And a side effect of this PR is to fix #112 per my test.