Local hook check was changing exit code of hooks

Thanks to @mike-burns