   end
 
   def remote_start(parent, ref) do
-    send parent, {:begin, ref, self()}
+    send(parent, {:begin, ref, self()})
     receive do: ({:done, ^ref} -> :ok)
   end
 

  end

  defp tty_args do
    if remote = get_remsh(:init.get_plain_arguments) do
      if Node.alive? do
        case :rpc.call remote, :code, :ensure_loaded, [IEx] do
          {:badrpc, reason} ->
            abort "Could not contact remote node #{remote}, reason: #{inspect reason}. Aborting..."
          {:module, IEx} ->
            {mod, fun, args} = remote_start_mfa()
            {remote, mod, fun, args}
          _ ->
            abort "Could not find IEx on remote node #{remote}. Aborting..."
        end
      else
        abort "In order to use --remsh, you need to name the current node using --name or --sname. Aborting..."
      end
    else
      {:erlang, :apply, [local_start_function(), []]}

  # to do it just once.
  defp tty_works? do
    try do
      port = Port.open({:spawn, 'tty_sl -c -e'}, [:eof])
      Port.close(port)
    catch
      _, _ -> false
