Safer stream handling

for example [`request`](https://github.com/mikeal/request) returns a stream that has a `path` attribute (the path on the server) but will cause `stat` to fail and throw.