tweak: prevent looping if ENV['locale'] is undefined
update: version