safer rimraf

Avoids various appium crash.