Generate a Regexp object from a glob(3) pattern