Fixed file purge script to handle NULL archive names

Change-Id: Icbff842694039e018850f1fa320f6e3d5b403aac