[tool] fix build native node cause error on cygwin
[tool] make script runnable on linux
Merge pull request #475 from owenc4a4/tools

fix build native node cause error on cygwin