Close #12 PR: Respecting the file's permission mode.