update for new uiauto command processing
Merge pull request #2892 from sebv/new-commands

update for new uiauto command processing
launchAndKill checks for simulator directories to be present before finally killing. Fixes 2612