Fix for sudo needing tty