Fix bin path.
Redirect stderr.
Grab JSON from the env.