delete old
only write file if head line does not start with #