Check connection to Tor from bash