Fix pointless file dropped into $PWD. Hook up output to the log interface.

PrintError looks like it should be ERROR, not WARNING, but it seems to fire for not finding some idiot XML file (it works fine anyways), so it's probably better to keep as WARNING.