Fix bug [#2062]: preserve case in patterns without glob tokens.