Read from STDIN if data is being piped in

Fixes #130