split up libgit2 bootstrapping into env.sh and a libgit2_bootstrap.sh