Prevent error messages from pre-commit hook on OS X.