Use find instead complex directory and file checks as proposed by @pbrisbin
Update documentation to reflect the recursion into hooks directories