Directories don't have trailing slashes in PHP stream wrappers

Fixes #128

```
OK, but incomplete or skipped tests!
Tests: 777, Assertions: 1942, Incomplete: 2, Skipped: 4.
```

Does have the potential to strip multiple trailing slashes with this use of `rtrim` but I'm not sure if that's ever a thing that could happen with S3 keys.