CAPX-24 Add checks to ensure the private files dir exists and is writeable.