World writable root

Problem occurs as of fdb11d7c0699a542a7edb43e53364fac7f829870 when a file is changed in the root of a repo. The containing directory (root) of the out of sync repo has its permissions changed to 777 but fixupDirectories() does not restore them after the file has been added/removed/updated. I guess an alternative fix would be to monitor the root directory's perms separately.