simplify update_latest() via here document

Simplify update_latest() and make it more readable by using a here
document instead of multiple echo statements.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>