[libvirt] [PATCH] Reduce code duplication in virFileMakePath(Helper)