Updated build system to incorporate libgit2.

Also, VCS picking is done by looking to see if ".git" is in the remote
URL or not.