[configure] Clean up target name matching for $host != $target case.