scripts: add support for git in rev_num.rb