fix window and tab title when executing commands