[tool] fix build native node cause error on cygwin
[tool] make script runnable on linux
[test] test case for #391
[test] fix some problem of test case.
[test] test case for loaded event

#469
[test] test case for `new-instance` in window
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