Fix restarts on erlang cookie setting (again)