Gets gclient to work in emacs again.
Also fixes bug where gclient fails because options isn't defined.


git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@19498 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gcl b/gcl
index a500c62..7ea6703 100755
--- a/gcl
+++ b/gcl
@@ -6,7 +6,7 @@
 base_dir=$(dirname "$0")
 
 # Use the batch file as an entry point if on cygwin.
-if [ "${OSTYPE}" = "cygwin" -a "${TERM}" = "cygwin" ]; then
+if [ "${OSTYPE}" = "cygwin" -a "${TERM}" != "xterm" ]; then
    ${base_dir}/gcl.bat "$@"
    exit
 fi