tg: improve handling of configured core.hooksPath