configure: cleanup - parsing supported target triples
auto merge of #5576 : yichoi/rust/pull-0327, r=brson

minor fix
configure: cleanup - parsing supported target triples