Improve configuration tool code

- removal of one *.swp file from git
- lazy formatting for one logger message
- STEP_DOC dict is more explicit
- use of list comprehension instead of map
- improve shell scripts robustness to variables
  with whitespaces
- use sh instead of bash when possible
- fix fatal error message