Merge pull request #456 from brodie/perm-fixes Create objects, indexes, and directories with the right file permissions