OTA: Fix issue where unneeded files are processed

Change-Id: I9610120774eca4e6f1692e537de53b44a202b9af