replace whitespaces with TABs and only throw exception when Cake is in Debug mode