Reimplemented prependLinesWith to fix #4