support both s3:// and s3n://