updated torexitcountry.sh to output to stdout and write to file