Brown chicken on all sides in olive oil. Add onions and garlic, cook for 8 minutes. Add thyme, tomatoes, salt, pepper and water. Cover and simmer for 20 minutes. The sauce should be thick but if it watery boil until it becomes thicker. Remove thyme sprigs and discard. Stir in parsley and basil. Set aside. Unfold filo dough and using one sheet, place some of the filling into the edge of the dough and fold into a triangle shape. Place seam side down on a baking sheet and bake in 375 degree oven until light brown or about 20 minutes.