added check for gnome-terminal