Revert "Subbed "head -n -1" with "sed 1d""

This reverts commit 2bcab9e1a4ce4d8d3da204b97c52a31d475ee398.

Not sure what I was thinking.  head -n -1 is not sed 1d at all.  Reverting for now, will fix better later.