fix #1216 - incorrect preg_match for $usesS3