#414 If cache / logging directories don't exist, try to create them.