updated apptotals with new dirname and to only output POSITIVE PMI