better YUI version compare, specifically to support yui@3.10.0

I was unsure how to write tests for this :worried: .