properly check for and retrieve git user name and email