Fix tty issue during foreman-deploy