Fix I/O-protocol error handling in eunit

ex_unit:io_request reuturns wrong value when it receive getopts or
get_geometry request