fixing the case for old git that doesn't support "symoblic-ref --short"