Fix check for iTerm2 tmux integration

Check for variable definition had an extra $.