Fix warning when building on Windows.

Use `chmod` from shell.js.
Merge pull request #1147 from XhmikosR/master

chmod