Fix appium shell

Fix #1678