Only chmodr git remotes in Windows

Recursively setting file permissions on git remotes breaks git
hooks for anyone who uses git templates and symlinks their hooks
across repositories by removing execute permissions on the shared
hooks.

Since the original commit that added this feature:
npm@48263bf
was a fix for a Windows only issue:
npm#3117

The proposed solution provided in this PR is to only apply the
file permissions in Windows.