use a form of mktemp that works on OSX and linux.

Also check for cqlsh on path.