Fix bug introduced in 75980ea re: chmod/lchmod.

os.lchmod does not exist on Windows or Linux.
Merge branch 'master' into r