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

This eliminates some redundant mentions of the standard file numbers. This allows JL_STDOUT etc. to refer to other descriptors if necessary.
cc @loladiro