correctly set cmake module path before searching for packages