Remove extraneous newline when adding preamble

Fix issue raised in #120, following @elyscape suggestion