> Can upstream make a change to their software to create this folders if they don't exist, so Homebrew doesn't have to pre-create them?

Maybe. I'll send pull-request to upstream.