mkpackage: added support for downloading git repositories.