Make it work in Windows

In Windows,
I use precommit-hook
it passed all JSHint, but git didn't commit after checking.
I found this code in https://github.com/cowboy/node-exit/blob/master/lib/exit.js

It works after I added this lines.