sh: Remove arbitrary length limit on << EOF markers.

This also simplifies the code.