Added func detect_avail_csi. refactored logging.sh accordingly. Signed-off-by: Stephan Wendel <me@stephanwe.de>