zsh: protect tmw function against the case where not running under tmux

Signed-off-by: Ben Walton <bdwalton@gmail.com>