fix protocol version negotiation

This fix was produced using a switch that supports OpenFlow versions 1.0 through 1.3. Please review.