An alternative approach to determining average distance in a class of scale-free modular networks