Fix for installing/removing app on device when a .app path is used.

Appium does not install and remove the app correctly with ```-U UDID --app foo.app```. This fix makes sure that ```foo.app``` is correctly installed and removed.