set permissions after git clone, fix #3117

This fixes 'npm cache clear' issues on Windows 7 that are due to the git clone writing files marked as read only.