Refactor test case for single instance
Fix single-instance failed on window
Test case for single-instance with `open` method in Mac
escape root path for JS correctly

or the application cannot start in directory like C:\xdk
Merge pull request #980 from kingFighter/single-instance

Refactor test case for single instance
Check script handle correctly

Fix commit 882a05f36252b044a9bbed752328627392e73a8c
Transform app url to file url in app protocol handler

Fix #990; Or the host name will be treated as network share host name
Merge pull request #989 from richardcypher/master

fix dist target on mac is broken