Hi arries289,
An alternative to your current approach would be to modify the remote shell to use bash and then set the PROMPT_COMMAND environment variable. Here is an example that will set the hostname for the tab:
PROMPT_COMMAND='printf "\033]0;%s\007" "${HOSTNAME%%.*}"'