git: check for command availability in pre-commit hook