improve /var/cpanel/hooks.yaml hooks detection