Fix check for iTerm2 tmux integration

Check for variable definition had an extra $. See issue #1925.