[Coverage] Fix two bugs on iOS platform.

This CL fixes two bugs on iOS platform:

1. When running tests using iossim, the application bundle parameter
always comes last.

2. When user specifies path to the an .app bundle, if it ends with a
'/', os.path.basename returns empty instead of the the basename that
we want.

Change-Id: I12130dd8e35415c9a9e56e7e47be712b2334ad5f
Reviewed-on: https://chromium-review.googlesource.com/951858
Commit-Queue: Yuke Liao <[email protected]>
Reviewed-by: Abhishek Arya <[email protected]>
Cr-Commit-Position: refs/heads/master@{#541279}
1 file changed