Error in generated Varnish configuration: can't "import purge;"

I'm currently trying to setup Varnish for my Plone site;
CentOS 7, system's Varnish v4.0.5-1.el7, plone.recipe.varnish 2.2.0.

When I try to start Varnish, I get:

Message from VCC-compiler:
Could not load VMOD purge
    File name: /usr/lib64/varnish/vmods/
    dlerror:: /usr/lib64/varnish/vmods/ cannot open shared object file: No such file or directory
('input' Line 8 Pos 8)
import purge;

Running VCC-compiler failed, exited with 2

VCL compilation failed

The VCL file up to this line reads as follows:

# This a configuration file for varnish.
# It was generated by plone.recipe.varnish.
# See the vcl(7) man page for details on VCL syntax and semantics.
vcl 4.0;

import std;
import purge;

I'm a complete Varnish newbie, so I'm quite lost.
What can I do to make this run?
Is there some component which needs to be installed?
Are there changes to apply to the VCL file?
Is this a plone.recipe.vanish bug?

Thanks a lot for any help and pointers!

I think vmod purge comes first with Varnish 5.2

I tried the varnish_version setting (which is documented for the :build feature of plone.recipe.varnish only), and it seemed to work:
With varnish_version = 4.0, the import purge line is not generated.

Plone Foundation Code of Conduct