Use wrench.js instead of shell commands

Fixes windows compatibility
Merge pull request #155 from conradz/wrench

Use wrench.js instead of shell commands