Runs the given example (or binary) target.
Runs an example or binary target, applying a temporary manifest patch if a workspace error is detected.
This function uses the same idea as in the collection helpers: if the workspace error is found,
we patch the manifest, run the command, and then restore the manifest.