Fix build scrpit for cygwin

* Fix publish script for cygwin