Initialize datadir if it does not exist