retry script: manipulate so that tty control isn't needed

because it will be run without tty