core_ext/io.rb: use File::open instead of IO::open

(IO::open) accepts an Integer (a #fd) as its first argument.
If we have a file name, we need to use (File::open) instead.