Make thumbnail purging script stand-alone from init.d for manual invocation

Change-Id: I11f94213a3fa949b434b884f8b4fb8a813c29083