added libgit2 build script; refactored vm build script and added more informative comments