common: fix all *_check_version() functions

Ref: pmem/issues#10
Merge pull request #65 from ldorau/vmem-fix-vmem_check_version

common: fix all *_check_version() functions