[libvirt] [PATCH 2/2] build: fix getcwd portability problems