converting pre-commit hook installer to node script for cross platform c...

...ompatibility

Fixes #10