Fix run_hook()'s last statement being false if no hook found, leading to build failure