Use filename in IO::open error message.
Use filename in IO::reopen_path error messages.