updated tor scripts

improved tor uid detection