Fix EXDEV error when using renameSync to move
Merge pull request #2140 from bootstraponline/exdev

Fix EXDEV error when using renameSync to move
Merge pull request #2142 from jlipps/master

if we're not in a git repo. don't link commit hooks (fix #2141)
fix sudo behavior for windows (fix #2137)