Fix for NMS-6306, Upgrade tools requires Internet for DTD validation on RRD files.

The unmarshal operation against the output of "rrdtool dump" commands
have been modified to avoid DTD validation if the DOCTYPE is provided
with the XML.

The code for processing Runtime.getRuntime().exec() has been improved
to reduce the memory overhead.