Fix installing of hooks