use locale() instead of $LANG

and added missing warnings/strict (removing also wrong call to EBox::Config::version)