Check for tmux running when changing cursor shape.

Fixes 'tmux;' appearing when vim is running outside of tmux.