speed up checking hook names during installation, update #2634