Find magit hooks dynamically