Add `walk_dirs()` to utils/common.py. This function can ignore some files and file ext,
and supports fnmatch pattern.