Fix function.ontology generation for older obo versions.