Don't raise exceptions if either STORAGE_DIR or UPLOAD_DIR is not a directory.

This allows external scripts to load config.dg for automatic configuration.