The "fossil ui" and "fossil server"] commands make use of the system() api to
run subordinate instances of fossil (one instance for each incoming HTTP request.)
Those subordinate fossil commands expect to run in the same directory as the main
fossil instance.  I suppose messing the registry as you have breaks that
assumption.