fix buggy version comparison

Fixes #6