Configure xterm-title at the right moment