Fix minor bug with file name listing in pre-commit hook.