Fix issue with properly detecting S3 backend

When specifying additional arguments in front of the s3:// backend,
backend dependencies weren't properly detected