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>