master: fix reload of config

As helmut noticed on IRC, some vars were not replicated when refreshing the
config (such as $config->{cgitmpdir}). This patch fixes that.

Note that it is only a slightly edited version of what he proposed, mostly for
clarity.

Closes: D:742203