Add CommitCommentTools::Term#dirname and use it.

Because Term#label includes "/" (path separator).