Improved error for missing / unwritable logs / cache dir.