external-toolchain-cross: use case instead of echo|grep

Signed-off-by: Christopher Larson <chris_larson@mentor.com>