fix #48 and more...

all tests are passing.
tested command line build + run on osx
tested programmatic build + run on osx
Here I think it should take it from `platforms` instead of `this._platforms` so `runApp` doesn't depend on the platforms in the options and just uses the current platform.