linux scripts: Respect `$CARGO_TARGET_DIR` (#13830)

https://doc.rust-lang.org/cargo/reference/environment-variables.html

Some people (myself included) set this variable to have a single
directory to clean up (or whatever reason one might have for having a
single `target` directory). This changes the linux scripts to respect
that

Release Notes:

- N/A
1260b52c82Chinmay Dalal committed on 7/5/2024, 11:19:05 AM· committed by GitHubparentfc8749f
2 files changedLine totals unavailable