Fix outputting too many sh <<ROOT_EOF
When installing a bootscript or a unit, this sometimes happen (e.g. samba).