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

Test case for `new-instance`, `loaded event` and fix some problem in test case
Merge pull request #475 from owenc4a4/tools

fix build native node cause error on cygwin