added glob_to_regex function (Text::Glob) - fix for #495