cmd_init_db(): when creating directories, handle errors conservatively