Pipe stdin when options.stdin is set to true