Fix bug: script crashes if "regions name" otpion not found

Reported by Cristian Consonni