Don't call pre-commit hook if tg is not installed