[libvirt] [PATCH] util: Implement and use virFileIsRegular() rather than d_type