improved git archive script