Fix git revision extraction