purge: prevent a silly crash with --confirm --files
if --files is passed, there was no directory to checks and `msg` was undefined.
This is now fixed and tested.
local test passedaddgroupcopy test passedclone test passedlowlevelcopy test passedslicing test passedissnapshot test passedfindsnapshot test passed