add global.locale and default.locale
bugfix on sh calls, replaced . by eval