Refer to module by suitable file name (mod_*.c). Test for mod_authz_core.c (instead of mod_authz_host.c) to properly detect Apache 2.4 and avoid false positive for Apache 2.2.