Make a test a bit more robust to the environment
Make a test a bit more robust to the environment

Don't filter out PATH as `rustc` may be in that directory (e.g. when using
rustup) and otherwise just have a longer subcommand.

Closes #2553

achanda/cargo,tshepang/cargo,tshepang/cargo,mark-buer/cargo,tshepang/cargo,rust-lang/cargo,blaenk/cargo,durka/cargo,tshepang/cargo,durka/cargo,rust-lang/cargo,nipunn1313/cargo,achanda/cargo,blaenk/cargo,rustyhorde/cargo,nipunn1313/cargo,eminence/cargo,blaenk/cargo,tsurai/cargo,rustyhorde/cargo,mark-buer/cargo,vojtechkral/cargo,tsurai/cargo,brson/cargo,brson/cargo,tsurai/cargo,AndiDog/cargo,achanda/cargo,rust-lang/cargo,sbeckeriv/cargo,AndiDog/cargo,AndiDog/cargo,achanda/cargo,mark-buer/cargo,tsurai/cargo,AndiDog/cargo,nipunn1313/cargo,sbeckeriv/cargo,rustyhorde/cargo,eminence/cargo,vojtechkral/cargo,nipunn1313/cargo,mark-buer/cargo,rustyhorde/cargo,sbeckeriv/cargo,brson/cargo,tsurai/cargo,brson/cargo,vojtechkral/cargo,mark-buer/cargo,vojtechkral/cargo,brson/cargo,sbeckeriv/cargo,blaenk/cargo,eminence/cargo,blaenk/cargo,durka/cargo,rust-lang/cargo,eminence/cargo,durka/cargo,AndiDog/cargo