hooks: exit code fix

* Fixes problem with hooks exit code, that prevented hooks from aborting
  the commit.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
Merge pull request #39 from lnielsen-cern/hooks-fix

hooks: exit code fix