added condition to set 256color to xterm if exists