Merge pull request #126 from joshuawarner32/master

Use 0777/0666 permissions when creating dirs/files.