t: Fix legacy-filenames test

Signed-off-by: Niels Thykier <niels@thykier.net>