Fixed broken support for STDIN