perl tidy on filters file
pass full path to stats function so its not regenerated again