Implement a glob pattern matcher in the core that we can use