Fix error logs while trying to read MANIFEST.

After all lines have been read "while (getline(efile, line))"
will still try and read another line and returns an exception.
Checking the eof(end of file) bit confirms this and is not a
valid error.

This is part of a fix for openbmc/openbmc#2174

Change-Id: I0254b7f029a6343dae03d2fbc639f74c51d05d99
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/version.cpp b/version.cpp
index 4defa77..2000ab1 100644
--- a/version.cpp
+++ b/version.cpp
@@ -77,7 +77,11 @@
     }
     catch (const std::exception& e)
     {
-        log<level::ERR>("Error in reading file");
+        if (!efile.eof())
+        {
+            log<level::ERR>("Error in reading file");
+        }
+        efile.close();
     }
 
     return keys;