convert more backend code from `cask_name` to `token`

missed in #7673