fix clear data directory when nothing is there