Don't complain about non-writable datadirs before we're installed

Also changes `OC\Util::checkServer()` to inject the config so we can cleanly test everything without having to overwrite the system config.

Fixes #10628

@MTRichards can you verify if this solves the issue

cc @PVince81 @DeepDiver1975 @th3fallen