Fix launch app issue on windows.

This should fix all the "unable to launch" bugs on windows.

@devoncarew PTAL thanks