packager.sh: more general approach to retrieve git repository