vmem: fix vmem_check_version()

Ref: pmem/issues#10