Added fgets support to std.cfg