add emacs invocation condition for cygwin