sg: Fixup precedence of cmd specific env vars
Created by: eseliger
This fixes a regression introduced by https://github.com/sourcegraph/sourcegraph/pull/34627 where cmd specific vars would not have higher precedence anymore, breaking the dev env because some variables were set to wrong values now.
Test plan
Ran sg locally to confirm the issue I saw disappears.