Bug 1044709 - Handle text or JSON output from DMD in get_about_memory.py.

This works with either kind of file, for backward compatibility.