Honor the --database_dir option.