pre-commit hook for automatic versioning