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

Backport of #10934 were some conflicts along the way

cc @DeepDiver1975 @PVince81 @th3fallen