always try to remove the old file when writing new
always try to remove the old file when writing new

This fixes a bug when code failed when overwriting a broken link

ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome,ibukanov/ahome