Hack cli.rb to fix double interactive mode