Use canonical_name when checking LinkedKegs and opt

name is the user-provided string and may be an alias, path, or URL.