Get SHA1 from branches.sh instead of running rev-parse.

Doing a git-rev parse gives the wrong (non-detatched) sha1 of the
actual tag instead of the commit which means for tags we get the
wrong sha1. Instead use branches.sh with -v which gives the
expected sha1.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>