hwloc-patch: add support for automatically guessing the input topology filename from the XML refname

You may do "hwloc-patch refname foo.diff.xml", it will replace "refname"
with the topology that was used as a reference when generating the diff.
hwloc-compress-dir: allow to uncompress with -R

Modify the test case a bit because the input XMLs weren't totally perfect.