Make tab text consistent with window caption