cmt-save-env: allow to save env from parent shell