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

https://tickets.opscode.com/browse/COOK-3606