Fix empty line file save bug.
Remove empty lines from cd history datafile.