[PATCH] testbot: Treat directories and files the same when using rmtree().