[COOK-3606] remove trailing \n from erlang cookie file contents