Add untested implementation of globs
Avoid crashes on some consequent errors