pre-commit: Fix looping over multiple file names

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>