Do not evaluate the format string when debug is not set
Add stats about external command calls