waf: add git short has if avail

Try doing this in autotools. I DARE YOU TO!