Fix file mode for git.
Merge pull request #212 from alastairs/fix-file-mode

Fix file mode for git.