fix set/badip so that it appends to the existing file