Rewrite tmuxattach script