Fixed git revision detection