fixed glob() edge case on windows, ref bug #47358