Ticket #24572 - Make the tk_version resolution more robust when passed in globs