Use pty for long running commands