Fix getKML script, enable multiple file writing using id
build