Broke out the download MD5-checking into a subroutine. Should save at
least a little bit of typing later on.

Signed-off-by: Elliot Voris <elliotfriend@gmail.com>