Fix pre-commit detection of staged_php_files