cross-validation: fix num_folds when passed explicit folds