Create $datadir only if there are no variables