MULE-6724: make maven buildnumber plugin work with git
(cherry-picked from 894d87a)
(cherry-picked from f31c624)