fix permissions on .git dirs