in init_stdio, get FD out of the file object instead of hard-coding it
Merge pull request #4734 from JuliaLang/jb/fixstdfd

in init_stdio, get FD out of the file object instead of hard-coding it