Show git branch in version output. fixes #1953

Signed-off-by: Daira Hopwood <david-sarah@jacaranda.org>