Ensure that freebsd service rc.conf ends in newline before appending

Fixes #12836