make STDIN an IOStream on linux when the input stream is a file
workaround for #2162
Merge branch 'master' of github.com:JuliaLang/julia