will not write outfile and errfile if they are empty in apps.grid