in reply to Variable fails where absolute path does not
die "$file did not extract properly";
with
die "File |$file| did not extract properly";
helps to immediately point out that something is funky with the pathname, when the error is displayed.