Fixes #2. Will create the hooks directory if it does not exist.

It was a pleasure to work in your code. Very clean, well tested. Thanks!