[Libguestfs] [PATCH v2 1/5] tests: switch away from xgetcwd