Fix caching of file glob