Set permission on output files.

Close #4.