first stab at making ProcessLBatchMode.m more robust in reading in files