Canonicalize commands before looking for definitions.