Added check to cope with gnome-terminal TERM settings
Some clean up in bashrc