build: fix error messages in check_commit_msg.sh