simplifying path vs. stream detection

This PR is a much simpler alternative to https://github.com/apocas/docker-modem/pull/15 with the same (and arguably even more reliable result).

- simpler to detect string
- if string we assume it is a path to a file
- if not string we assume it is a stream since that is the only other option