Added Windows fixes; 

- Added shebang line
- PATH is now quoted
- Hook exits with code 1