[gsview] fix check for libgs.so to avoid spurious output