oops. getlogin won't work if there's no terminal