[BUGFIX] Fix capture of filename when coming from compressed file

Fix was applied previously but accidentally removed in previous commit.