s3_repository: Fix downloading a new image

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>