More work on tmux environment handling.