Set the mtime of the file after downloading

If the last-modified header exists, make sure the file is saved with
that mtime. This is in preparation for using the last-modified and mtime
to perform a simple "latest?" check.