added option to use git archive instead of clone