fix check dir for kafka version