fix move creating data directory after root has been configured