fix an exception with the way tor was detected