ccanlint: move license tag matching into common code.