utils_test.libvirt: Check gluster command before use it

1. Check if 'gluster' command exist on the host
2. Remove an unused variable

Signed-off-by: Yanbing Du <ydu@redhat.com>