fix version comparison for double dashes (issue #321)