Fixed setting git config env. Correctly qurries the db for email address...

.... Also fixed gitClone.