minor code cleanup and bug fix
reverted previous commit, it must be OUTFILEP: LINES TERMINATED BY does not work with DUMPFILE
typo fix