Don't use git symbolic-ref --short

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>