Slightly improved the function that checks if Tox is online.