Improved parsing of graph XML templates.

This allows Tasks.py to invoke the correct graph or windrose plotter and
stops the "rose_xxx.png.xml has no plot nodes" messages.