emacs when opened in terminal does not load a color-theme

Made changes to so that emacs will detect if it is running in
a terminal or in a x-window system. If it is running in a
terminal then zenburn theme is not loaded