lib: internal: regex: globToRegexString: reimplemented without regexes and moved to 'lib: common'