The switch to pathlib changes how `glob()` works. This should be tested and probably replaced with a custom implementation.