Fix activator script for cygwin.
Fix test command which always return 1.
Merge pull request #318 from yskkin/fix/cygwin

`activator` script does not run on cygwin.