Construct environment for local TMux properly

The environment was being effectivelly nulled out, causing weird
problems in the shells in the child TMux session