launchAndKill gets passed a condition function, instead of a timeout. pa...

...rt of Fix for appium/2612
there. `condition` is passed in as a param.