Add handling for S3 path option being a proc