Check for prefix cargo as well
Similar to 89774df8573ed2c88eb596693dd00c33837c7c61, cargo might be prefixed with the target arch when cross-compiling.
Similar to 89774df8573ed2c88eb596693dd00c33837c7c61, cargo might be prefixed with the target arch when cross-compiling.