Implement removal of pre-commit hook (fixes #21)