Get git revision the right way