Make S3Target respect format

The format argument of S3Target used to be silently ignored.