COMMON: Add depth/flat parameters to addSubDirectoryMatching.
MOHAWK: Use addSubDirectoryMatching for LB paths.