template: fix CMake script

VleCheckPackage config required that both an include directory and a lib
directory. Now, only one of them is required (taking into account for
example header only packages).