Iterate through opts in a different way

It was finding weird values on the ninja client 0.91