make cwd default output dir for mkstats and fix broken grep for data files.