Adding a new line only if the first line starts with #