Fix app/overrides paths not loaded in production environment

I guess the local variable "paths" was not propagated correctly to all
threads, but no proof of that.