Fixed file modes.

All created files now have mode 0644.