Set console=ttyS0 for Amazon EC2 instances, as suggested by Amazon.

(cherry picked from commit 7d3dcd9a8c36bf33314a664c9d7c90b7ef4d73dd)