failsafe at file checking

Change-Id: I2b9878759be6b6d6e2c7daebfb11b8a94cfc4490