Better pre-commit hook