anchor.diff:          {undefined, undefined} ->
               ok;
           {Name, undefined} ->
  -            check_epmd(net_kernel:start([Name, longnames]));
  +            check_epmd(net_kernel:start([Name, longnames])),
  +            setup_cookie(Opts);
           {undefined, SName} ->
  -            check_epmd(net_kernel:start([SName, shortnames]));
  +            check_epmd(net_kernel:start([SName, shortnames])),
  +            setup_cookie(Opts);
           {_, _} ->
               ?ABORT("Cannot have both short and long node names defined", [])
       end.
  
positive.code:            "Verify that epmd is running and try again.",[]);
  check_epmd(_) ->
      ok.
  
  find_apps_to_boot(State) ->
      %% Try the shell_apps option
  
negative.code:                          "Gives a long name to the node."},
                          {sname, undefined, "sname", atom,
                           "Gives a short name to the node."},
                          {setcookie, undefined, "setcookie", atom,
                           "Sets the cookie if the node is distributed."},
                          {script_file, undefined, "script", string,
                           "Path to an escript file to run before "
                           "starting the project apps. Defaults to "
  