Use ensure_packages to make sure git is installed. Related to #386