Improve pre-commit detection for changelog filenames