Add option to strip globbing pattern's base.

Fix `keepExpandedHierarchy` overriding.