Fix group ownership on files.

And add a test to stop it being broken again.
Merge pull request #81 from songkick/fix-ownership

Fix group ownership on files.