cqlsh: hanlde symlinks properly

patch by Yinyin L; reviewed by Aleksey Yeschenko for CASSANDRA-6425