Modified slightly how we get the ref to reduce noise with varying versions of git when using --short