improve get git version script