Bug found when using an Array for src

When I use an `Array` for the `src` option, I get an error when I try to run the s3 task. The lines I changed here are the culprits, but I'm not entirely sure of their purpose, so feel free to correct me on this one.