[Libguestfs] [PATCH v3 1/6] tests: switch away from xgetcwd