Neo4j: fix broken version handling logic