Use more reliable git rev-parse instead of show-ref

Signed-off-by: David Greaves <david.greaves@jollamobile.com>
gp_release is a new tool to ease making a release

Signed-off-by: David Greaves <david.greaves@jollamobile.com>