src/ros.c: Check the return value of fgets().

Some compilers are unhappy when this return value is ignored.
src/ros.c: Use the "host" variable.

Otherwise some compilers complain about an unused variable. Also it is
much nicer to read.