Add commit hook for Mac.