common: fix all *_check_version() functions

Ref: pmem/issues#10