Git installation cleanups

Git installation cleanups

This changes makes sure git is installed before a build proceeds. Along with this change, some git installations are removed from later in the build cycle where they are no longer needed.