make calls to git config --unset more robust

handle the case of when user.email and user.name are not
set in the repo when it is copied over to the container