Fix Windows support

/!\ This PR is not from me, but from @backflip. He don't shows signs of life, so I decide to propose Pull Request from his fix.

This patch fix errors on Windows dues to usage of UNIX commands in scripts of package.json.