Switch floatval comparison to version_compare()

Thanks to r-a-y for the suggestion.