virttest.bootstrap.py: Correct number_variants in get_directory_structure

The old method of caculate number_variants will give a wrong number if
there is more than one sub directory in a cfg directory and each sub directory
has different depth.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>