fix for using s3 blobstore. Retains simple if blobstore plugin is not set