Fix SIGPIPE error in detect_changes when many files changed
When thousands of files change (common in repos with many test files), piping to 'head -50' causes SIGPIPE when echo tries to write more data. Fix by adding '|| true' to suppress the SIGPIPE error, and also show the total file count when output is truncated.