make hook code nicer.
pre hooks can raise exception if fail.
tidy up better if exception raised (like KeyboardInterrupt) when running
hook program.
adding aadding baNONEXISTENT: No such file or directoryaba: No such file or directoryNONEXISTENT: No such file or directorybaNONEXISTENT: No such file in rev 9e1684505872ab