make git resource work with git > 1.8.0 as non root

git changed its behaviour, somehow when $HOME is not set properly, if git fails to read the configuration git quits