Change default mode to 0x01FF

0x0FFF is 7777, not 0777
Change default mode to 0x01FF
make default file mode 0644
Merge pull request #105 from carbin/master

Change default mode to 0x01FF