Fix caching if multiple files have same name

I'm an idiot, I truly am.