More accurate postinst script

Fixes the postinst script in the case when cqlsh cannot connect to Cassandra.