c/files.pm: Refactor some variable declarations

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