S3 stream wrapper is_dir on a placeholder file

This PR adds checks to ensure that we treat zero-length place holder objects suffixed with a "/" character as directories. This allows the SDK to work with dummy files created by the AWS Management Console and mimics the behavior of the file stream wrapper for `is_dir('/tmp')` and `is_dir('/tmp/')`.