Verify ownership of git cloned/fetched files

In the case when people use `sudo npm install -g` some of the cloned git dependencies go to the npm cache. In this case when npm executes git clone or fetch, git sets ownership to root. This cases troubles when you try to do later `npm install` for dependencies which already under npm_cache/_git-remotes/ and has root ownership.

This change can cause performance degradation when you have a lot of git dependencies, because each time when you ask for git dependency - it will verify ownership first for all files under git folder. Better option will be to change ownership only for new fetched/cloned files.