Fix a problem with globs matching