Remove old preferences file and add new one