getent instead of grep
[chromium] don't try to load .onion outside tor
ditch /etc/hosts hack
don't mess with hostname