dependency: use pkg_comparator_lookup_by_name() instead of having special lexing rules for comparator tokens

This allows us to add new tokens in the future by adding them to one place.