Fixed the check for display server to also check the terminal to start with an "x" character, to cover SSH sessions running in GUI terminals or cygwin environments