check if did datadir exists