fix some file mode bug 755->644
Merge pull request #137 from bronze1man/pr-1.2-file-mode

fix some file mode bug 755->644 on 1.2 branch