[rust] Fix build ID flag setup for Linux targets

GNU/Linux targets end with "linux-gnu", not just "linux".

Test: CQ

Change-Id: Ia44f01c8db6a9cb4033226735982abbce4e4fd15
2 files changed