[BZ-1174563] fix packages attribute for kbase when using a wildcard