Add option to strip blank lines.

This addes the ability to strip new lines at the end of a file. So
if there is a bunch of empty lines created it will remove them.