Added Windows support

Fixes #1, also some changes are the same as done in [pull/#3](https://github.com/typicode/husky/pull/3) and [pull/#4](https://github.com/typicode/husky/pull/4)