SLightly more atomic locations.yml saving to guard against ctrl+c'ing users