Bug 728654 - configuration stops with settings.h missing

This bug fix fixes, in a general way, a number of issues encountered on Solaris
- configure
  - ! (exclamation mark) not recognized properly, but with mkdir -p no test is necessary
  - sed problem regarding removing last , (comma) in language list. Is automatically replaced in with a space when translating language names to upper case.
- lang_cfg.py
  - corrected check on number of arguments
Merge pull request #161 from albert-github/feature/bug_728654

Bug 728654 - configuration stops with settings.h missing