Detect error/eof while reading files (cfg parser) and macros (rev. 56)

Signed-off-by: nixnodes <code@eth.si>
Latest: 1.9-56

Signed-off-by: nixnodes <code@eth.si>