Revert "Add tty and sudo options"

This reverts commit 556cb1ea33118b4547e5f223f74d98fdbb3ba550.
Revert "Ensure hostnames are set properly. Fixes #712"

This reverts commit a75da999b52b71f906a061229df39fd5bb9e940e.