Fixes to write_ip_locations command.