Fix appium for api level below 18

#4227