Avoid creating world writable files
Merge pull request #770 from dwagon/731-umask

731 - Avoid creating world writable files