do not introduce empty lines into scripts

shebang already has a trailing \n, and for compat it should never include \r anyway!