added tmux_attach_if_exists function to common.sh