Fix .kaos export when alternatives are used.