fixed the env bugs in deploy/setup/start/stop