make sure the copy headers function doesn't cause an infinite loop to itself
don't fail on removing the linked file