Fix powerline again, and check for graphical terminal