support for (re)setting dataDir with null

Signed-off-by: Michael Vorburger <mike@vorburger.ch>