core: only use disc_copies if the mnesia dir is defined.