Updated cygwin code

Existing cygwin code returns an error "cmd: command not found". Fixed this.