remove the map file if exists before saving it