Get best matching glob from globs array for given path