Fix build scrpit for cygwin

* Fix publish script for cygwin, issues reported [here](http://discuss.cocos2d-x.org/t/cocos2d-x-v3-3-rc1-released/18623/27)