Fixed setup_hooks to work with the submodule configuration