[PATCH 3/5] Restrict known_hooks to only sub-directories of hookdir