Improve exporting of variables in TextMate to Terminal
Fixes issue with launching windows instead of tabs

The "cd" command of the `open_terminal_with_env.sh` script was issued without the "in window 0" context.