Merging in glob_to_regex function

Merging in new function from OVAL Sandbox.