improved TSL path auto detection

fixed gui bugs