fix check if metapackage has CMakeLists (regression from cb5564734d5b4ae3284b109b286fc4c543bb5493)