Issue #25584: Fixed recursive glob() with patterns starting with '**'.