Client.getpass: allow use on non-tty devices