Added some more logic checks to updateFileEntries so it can be less
breaky.

Signed-off-by: Anna Wojtowicz <wojtowicza@ornl.gov>