Run HTML files through tidy (if it's available) to clean them up.